package com.web709.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("activity_participants")
@ApiModel(value = "ActivityParticipant", description = "活动参与表")
public class ActivityParticipant {
    // id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    // 用户id
    private Integer userId;
    // 志愿id
    private Integer volunteerId;
    // 活动id
    private Integer activityId;
    // 参与时间
    private LocalDateTime joinedAt;
}